package com.touni.designpattern.bridgepattern;

import com.touni.designpattern.bridgepattern.bridgeimpl.DrawAPI;

/**
 * @ClassName : Shape
 * @Description : 通过抽象类进行关联  DrawAPI 和shape两个都是独立变化的维度
 * @Author : lwq
 * @Date: 2020-10-22 11:36
 */
public abstract class Shape {
    protected DrawAPI drawAPI;

    public Shape(DrawAPI drawAPI){
        this.drawAPI = drawAPI;
    }

    public abstract void useDraw();
}
